package com.synjones.zeuscloudserver.controller;

import com.synjones.zeus.model.ExReqBean;
import com.synjones.zeus.model.ExRespBean;
import com.synjones.zeus.model.config.ConfigReqBean;
import com.synjones.zeus.model.config.ConfigRespBean;
import com.synjones.zeuscloudserver.service.ConfigService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.synjones.zeus.model.ApiStr.GETCONFIG;

/**
 * 获取配置信息
 * @author yys
 * Description: 获取配置信息
 * @date created in 12:18 2018-07-04
 * Modified by:
 */
@RestController
public class ConfigController {
    private static final Logger LOG = LoggerFactory.getLogger(ConfigController.class);
    @Autowired
    @Qualifier("configServiceImpl")
    private ConfigService configService;
 /**
   *  获取配置信息
   *  @param reqBean
   *  @author yys
   *  Description: 获取配置信息
   *  @date 12:23 2018-07-04
   *  @return ExRespBean<ConfigRespBean>
   *  throws 
   */    
    @RequestMapping(value = GETCONFIG)
    public ExRespBean<ConfigRespBean> getConfig(@RequestBody ExReqBean<ConfigReqBean> reqBean){
        return configService.getConfig(reqBean);
    }
    
}
